package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Ellis.Li on 2017/5/12.
 */
public class CarRefuelInfo extends BaseModel<CarRefuelInfo> {

    /** ID*/
    public String car_refuel_id;
    /** 订单编号*/
    public String car_order_no;
    /** 名称*/
    public String car_refuel_amount;
    /** 格式化金额*/
    public String car_refuel_amount_format;
    /** 加油订单号*/
    public String plate_no;
    /** 名称*/
    public String car_refuel_status_id;
    /** 名称*/
    public String car_refuel_status_name;
    /** 颜色  */
    public String car_refuel_status_style_color;
/**时间*/
public String time;
    @Override
    public CarRefuelInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            car_refuel_id = jsonObject.optString("car_refuel_id");
            car_order_no = jsonObject.optString("car_order_no");
            car_refuel_amount = jsonObject.optString("car_refuel_amount");
            car_refuel_amount_format = jsonObject.optString("car_refuel_amount_format");
            plate_no = jsonObject.optString("plate_no");
            car_refuel_status_id = jsonObject.optString("car_refuel_status_id");
            car_refuel_status_name = jsonObject.optString("car_refuel_status_name");
            car_refuel_status_style_color = jsonObject.optString("car_refuel_status_style_color");
            time= jsonObject.optString("time");
            return this;
        }
        return null;
    }
}
